﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using MillerApp.CommonLib.Utility;
using System.Drawing;

namespace MillerApp.Stock
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Login login = new Login();
            login.ShowDialog();
            if (login.DialogResult == DialogResult.OK)
            {
                MainForm mainForm = new MainForm();
                mainForm.CurrentUser = login.CurrentUser;
                Application.Run(mainForm);
            }
        }
    }
}
